home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000114_icon-group-sender _Mon May 6 21:38:40 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 7 May 1996 06:31:33 MST
Message-Id: <318E6350.29CA@tees.ac.uk>
Date: Mon, 06 May 1996 21:38:40 +0100
From: Hamish Lawson <H.Lawson@tees.ac.uk>
Organization: University of Teesside, School of Computing and Maths
X-Mailer: Mozilla 2.01Gold (Win95; I)
Mime-Version: 1.0
To: Icon group <icon-group@cs.arizona.edu>
Subject: Regular expression to Icon converter
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
I know that regexp.icn in the Icon Program Library contains procedures for
doing regular-expression matching, but has anyone written a program that will
convert a regular expression into equivalent Icon code?
For example, given the string
^ab+
the program produces
="a" & move(many('b'))
Such a utility could be useful to those coming to Icon with experience in REs,
or to those wanting to convert Perl code to Icon.
| Hamish Lawson, School of Computing and Mathematics,
| University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA
| Tel: +44 1642 212695 Fax: +44 1642 342604
| E-mail: H.Lawson@tees.ac.uk